import request from '@/utils/request'

// 查询病例模板目录列表
export function listCaseModelCatalog(query) {
  return request({
    url: '/dms/caseModelCatalog/list',
    method: 'get',
    params: query
  })
}

// 查询病例模板目录详细
export function getCaseModelCatalog(id) {
  return request({
    url: '/dms/caseModelCatalog/' + id,
    method: 'get'
  })
}

// 新增病例模板目录
export function addCaseModelCatalog(data) {
  return request({
    url: '/dms/caseModelCatalog',
    method: 'post',
    data: data
  })
}

// 修改病例模板目录
export function updateCaseModelCatalog(data) {
  return request({
    url: '/dms/caseModelCatalog',
    method: 'put',
    data: data
  })
}

// 删除病例模板目录
export function delCaseModelCatalog(id) {
  return request({
    url: '/dms/caseModelCatalog/' + id,
    method: 'delete'
  })
}
